define([
  'jquery',
  'underscore',
  'backbone'
], function($, _, Backbone){  
			var innerLayoutView = Backbone.View.extend({
				el: $("#watch .innerHeader"),
				getLayoutTemplate: function()
				{
					return _.template($("#inner-layout-template").html())
				},
				events: {
					"click #back-link": "goBack"
				},
				initialize: function() {
					this.render();
					this.listenTo(this.model, 'change:text', this.render);
				},	
				render: function() {
					this.$el.html(this.getLayoutTemplate()(this.model.toJSON()));
				},

				goBack: function() {
					this.model.goBack();
				}
			});
		return innerLayoutView;
});